<layout name='layout/main' />
  <script type="text/javascript">
  $(function(){
    $("body").addClass("body-gray");
    _alert('温馨提示<br/>提现申请需财务统一处理，最迟一周内到账。');
  })  
  </script>

<div class="tabMenu tab2">
    <a href="<{:U('Submit/index')}>" class="active">申请提现</a>
    <a href="<{:U('Submit/history')}>">提现记录</a>
</div>

  
<div class="am-alert am-alert-warning am-text-center">您可提现佣金<{$yongjin}>元，最低提现金额为<{:C('tx_min')}>元</div>

<form action="<{:U('Submit/save')}>" method="post" class="ajax am-form address-form" id="doc-vld-msg">
    <div class="am-form-group">
        <label>真实姓名</label>
        <input type="text" name="name" id="name" class="am-input-sm" placeholder="您的姓名" required/>
    </div>

    <div class="am-form-group">
        <label>手机号码</label>
        <input type="text" name="mobile" id="mobile" class="js-pattern-mobile am-input-sm" placeholder="请输入手机号码" required/>
    </div>

    <div class="am-form-group">
        <label>提取金额</label>
        <input type="number" name="money" id="money" class="am-input-sm" placeholder="请输入提取金额" required/>
    </div>

    <div class="am-form-group">
        <label>提现方式</label>
        <div><input type="radio" value="1" name="txType" required checked="checked" onclick="showZFB()"> 支付宝
        <input type="radio" value="2" name="txType" required onclick="showCard()"> 银行卡
        </div>
    </div>

    <div class="am-form-group" id="zhifubao">
        <label>支付宝账号</label>
        <input type="text" name="zhifubao" id="zhifubao" class="am-input-sm" required/>
    </div>
    
    <div id="yinhangka" style="display:none">
    <div class="am-form-group">
        <label>银行卡号</label>
        <input type="text" name="cardNumber" id="cardNumber" class="am-input-sm" required/>
    </div>

    <div class="am-form-group">
        <label>开户行</label>
        <input type="text" name="bankName" id="bankName" class="am-input-sm" required/>
    </div>

    <div class="am-form-group">
        <label>开户姓名</label>
        <input type="text" name="cardName" id="cardName" class="am-input-sm" required/>
    </div>
    </div>


  <p><button class="am-btn am-btn-danger am-btn-block">提交</button></p>

</form>

<script>
  function showZFB(){
    $("#zhifubao").show();
    $("#yinhangka").hide();
  }

  function showCard(){
    $("#zhifubao").hide();
    $("#yinhangka").show();
  }
</script>

<div class="footerBox">
  <include file="Public:menu_fenxiao" />
</div>